<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Time extends CI_Controller {

    public function index() {
        $this->load->helper('date');
        $post_date = '1345995257';
        $now = time();
        echo timespan($post_date, $now);
    }

}